package com.baizhi.cmfz.entity;

public class Audio {
    /**
     * 音频id
     */
    private Integer audioId;

    /**
     * 音频名
     */
    private String audioName;

    /**
     * 音频封面
     */
    private String audioUrl;

    /**
     * 音频大小
     */
    private String audioSize;

    /**
     * 音频顺序
     */
    private Integer audioOrder;

    public Audio() {}

    public Integer getAudioId() {return this.audioId;}

    public String getAudioName() {return this.audioName;}

    public String getAudioUrl() {return this.audioUrl;}

    public String getAudioSize() {return this.audioSize;}

    public Integer getAudioOrder() {return this.audioOrder;}

    public void setAudioId(Integer audioId) {this.audioId = audioId; }

    public void setAudioName(String audioName) {this.audioName = audioName; }

    public void setAudioUrl(String audioUrl) {this.audioUrl = audioUrl; }

    public void setAudioSize(String audioSize) {this.audioSize = audioSize; }

    public void setAudioOrder(Integer audioOrder) {this.audioOrder = audioOrder; }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Audio)) return false;
        final Audio other = (Audio) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$audioId = this.getAudioId();
        final Object other$audioId = other.getAudioId();
        if (this$audioId == null ? other$audioId != null : !this$audioId.equals(other$audioId)) return false;
        final Object this$audioName = this.getAudioName();
        final Object other$audioName = other.getAudioName();
        if (this$audioName == null ? other$audioName != null : !this$audioName.equals(other$audioName)) return false;
        final Object this$audioUrl = this.getAudioUrl();
        final Object other$audioUrl = other.getAudioUrl();
        if (this$audioUrl == null ? other$audioUrl != null : !this$audioUrl.equals(other$audioUrl)) return false;
        final Object this$audioSize = this.getAudioSize();
        final Object other$audioSize = other.getAudioSize();
        if (this$audioSize == null ? other$audioSize != null : !this$audioSize.equals(other$audioSize)) return false;
        final Object this$audioOrder = this.getAudioOrder();
        final Object other$audioOrder = other.getAudioOrder();
        if (this$audioOrder == null ? other$audioOrder != null : !this$audioOrder.equals(other$audioOrder))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {return other instanceof Audio;}

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $audioId = this.getAudioId();
        result = result * PRIME + ($audioId == null ? 43 : $audioId.hashCode());
        final Object $audioName = this.getAudioName();
        result = result * PRIME + ($audioName == null ? 43 : $audioName.hashCode());
        final Object $audioUrl = this.getAudioUrl();
        result = result * PRIME + ($audioUrl == null ? 43 : $audioUrl.hashCode());
        final Object $audioSize = this.getAudioSize();
        result = result * PRIME + ($audioSize == null ? 43 : $audioSize.hashCode());
        final Object $audioOrder = this.getAudioOrder();
        result = result * PRIME + ($audioOrder == null ? 43 : $audioOrder.hashCode());
        return result;
    }

    public String toString() {return "Audio(audioId=" + this.getAudioId() + ", audioName=" + this.getAudioName() + "," +
            " audioUrl=" + this.getAudioUrl() + ", audioSize=" + this.getAudioSize() + ", audioOrder=" + this.getAudioOrder() + ")";}
}

